//
//  DetailCurriculumCenterView.m
//  毕业
//
//  Created by 吴添培的黑苹果 on 2017/10/9.
//  Copyright © 2017年 吴添培. All rights reserved.
//

#import "DetailCourseCenterView.h"
#import "UIView+ BorderLine.h"

@interface DetailCourseCenterView ()
@property (weak, nonatomic) IBOutlet UIButton *button;
@property (weak, nonatomic) IBOutlet UIButton *buyButton;

@end

@implementation DetailCourseCenterView

+ (instancetype)getDetailCourseCenterView{
    return [[NSBundle mainBundle] loadNibNamed:@"DetailCourseCenterView" owner:nil options:nil][0];
}

-(void)awakeFromNib{
    [super awakeFromNib];
    [_buyButton borderForColor:[UIColor redColor] borderWidth:1 borderType:UIBorderSideTypeAll];
    [_button borderForColor:[UIColor blueColor] borderWidth:1 borderType:UIBorderSideTypeAll];
}

- (IBAction)buyButton:(id)sender {
    if ([_delegate respondsToSelector:@selector(pushPayViewController)]) {
        [_delegate pushPayViewController];
    }
}

- (IBAction)buttonClick:(id)sender {
    if ([_delegate respondsToSelector:@selector(pushDetailInstViewController)]) {
        [_delegate pushDetailInstViewController];
    }
}

@end
